package com.dreamoo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dreamoo.common.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 山顶洞人郑某
 * @className UserMapper.java
 * @date 2025 05 08
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from dreamoo.user where user_name = #{userName} and pass_word = #{passWord}")
    User selectOne(@Param("userName") String userName, @Param("passWord") String passWord);
}
